#include <iostream>
#include <string>
#include <boost/asio.hpp>
#include "server.h"
int main() {
    try
    {
//        // Check command line arguments.
//        if (argc != 4)
//        {
//            std::cerr << "Usage: http_server <address> <port> <doc_root>\n";
//            std::cerr << "  For IPv4, try:\n";
//            std::cerr << "    receiver 0.0.0.0 80 .\n";
//            std::cerr << "  For IPv6, try:\n";
//            std::cerr << "    receiver 0::0 80 .\n";
//            return 1;
//        }

        // Initialise the server.
        http::server::server s("0.0.0.0", "8080", "/home/ct/workspace/httpserver");

        // Run the server until stopped.
        s.run();
    }
    catch (std::exception& e)
    {
        std::cerr << "exception: " << e.what() << "\n";
    }

    return 0;
}
